import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
// import { toptiale } from './views/HomePage.vue'

// const title = ref(toptiale.value)

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.mount('#app')

//定义全局方法 $setTitle:
// app.config.globalProperties.$setTitle = (newTitle:string) => {document.title = newTitle;};
// 使用全局方法设置标题:
// app.config.globalProperties.$setTitle(title.value);
